home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
control.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-06
|
609b
|
55 lines
/* Copyright Alex Hornby 1994/1995. All rights reserved.
See file README for details
*/
#include "control.h"
Control::Control()
{
for(int i=0;i<=FIRE4;i++)
last[i]=false;
}
Control::Control(const Control &c)
{
for(int i=0;i<=FIRE4;i++)
last[i]=false;
copy(c);
}
Control::~Control()
{
}
Control&
Control::operator=(const Control &c)
{
copy(c);
return *this;
}
bool
Control::test (action a)
{
return last[a];
}
void
Control::copy(const Control& c)
{
for(int i=0;i<=FIRE4;i++)
last[i]=c.last[i];
}
bool
Control::getRaw(void)
{
return raw;
}
bool
Control::getOkay(void)
{
return okay;
}